package flowlight.service;

import flowlight.dao.ScennicMapper;
import flowlight.entity.Scennic;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("ScennicService")
public class ScennicService {

    @Resource(name = "ScennicMapper")
    private ScennicMapper scennicMapper;

    public int deleteByPrimaryKey(Integer scennicId) {
        return  scennicMapper.deleteByPrimaryKey(scennicId);
    }

    public int insert(Scennic record) {
        return scennicMapper.insert(record);
    }

    public int insertSelective(Scennic record){
        return scennicMapper.insertSelective(record);
    }

    public Scennic selectByPrimaryKey(Integer scennicId) {
        return scennicMapper.selectByPrimaryKey(scennicId);
    }

    public int updateByPrimaryKeySelective(Scennic record){
        return updateByPrimaryKey(record);
    }

    public int updateByPrimaryKey(Scennic record) {
        return  scennicMapper.updateByPrimaryKey(record);
    }

    public List<Scennic> selectAllScennic() {
        return scennicMapper.selectAllScennic();
    }
}
